﻿<div ng-controller="settingController">
	<div class="wrapper border-bottom white-bg page-heading">
		<div class="col-lg-pull-12">
			<ol class="breadcrumb">
				<li ng-bind="breadcrumb"></li>
			</ol>
		</div>
	</div>
	<form name="site_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions" novalidate role="form" ng-if="action=='site'">
		<div class="form-group">
			<label class="col-sm-2 control-label">站点名称</label>
			<div class="col-sm-10">
				<input name="site_name" type="text" class="form-control input-sm" ng-model="model.site_name" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">站点Logo</label>
			<div class="col-sm-10">
				<input name="logo" type="file" ngf-select ng-model="model.file" accept="image/*" class="form-control input-sm">
				<img ng-src="{{site.img_url+model.logo}}" class="img-thumbnail" ng-show="model.logo" width="60" height="80">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">icp</label>
			<div class="col-sm-10">
				<input name="icp" type="text" class="form-control input-sm" ng-model="model.icp" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">接口URL</label>
			<div class="col-sm-10">
				<input name="api_url" type="text" class="form-control input-sm" ng-model="model.api_url" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">图片URL</label>
			<div class="col-sm-10">
				<input name="img_url" type="text" class="form-control input-sm" ng-model="model.img_url" required>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" w5c-form-submit="post()" class="btn btn-primary btn-sm" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
					<i class="fa fa-save"></i> 保存
				</button>
			</div>
		</div>
	</form>
</div>